package com.ruoyi.supermarket.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 超市货架信息对象 supermarket_com_shelf
 * 
 * @author faye
 * @date 2024-05-28
 */
public class SupermarketComShelf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 货架ID */
    @Excel(name = "货架ID")
    private Long shelfId;

    /** 储存ID */
    private Long storageId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long storageCommodityId;

    /** 位置描述 */
    @Excel(name = "位置描述")
    private String description;

    /** 状态 */
    @Excel(name = "状态")
    private String status;


    /**  非数据库字段，商品*/
    private SupermarketCommodity supermarketCommodity;

    /**  非数据库字段，货架*/
    private SupermarketShelf supermarketShelf;

    public SupermarketShelf getSupermarketShelf() {
        return supermarketShelf;
    }

    public void setSupermarketShelf(SupermarketShelf supermarketShelf) {
        this.supermarketShelf = supermarketShelf;
    }

    public SupermarketCommodity getSupermarketCommodity() {
        return supermarketCommodity;
    }

    public void setSupermarketCommodity(SupermarketCommodity supermarketCommodity) {
        this.supermarketCommodity = supermarketCommodity;
    }

    public void setShelfId(Long shelfId) 
    {
        this.shelfId = shelfId;
    }

    public Long getShelfId() 
    {
        return shelfId;
    }
    public void setStorageId(Long storageId) 
    {
        this.storageId = storageId;
    }

    public Long getStorageId() 
    {
        return storageId;
    }
    public void setStorageCommodityId(Long storageCommodityId) 
    {
        this.storageCommodityId = storageCommodityId;
    }

    public Long getStorageCommodityId() 
    {
        return storageCommodityId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shelfId", getShelfId())
            .append("storageId", getStorageId())
            .append("storageCommodityId", getStorageCommodityId())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("supermarketCommodity",getSupermarketCommodity())
            .append("supermarketShelf",getSupermarketShelf())
            .toString();
    }
}
